package com.tim.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 作者：Tim
 * 时间：2021/4/25 14:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataResult<T> {
    private Integer code;
    private String msg;
    private T data;
    private Integer count;

    public DataResult(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public DataResult(Integer code,String msg,T t){
        this.code = code;
        this.msg = msg;
        this.data = t;
    }
}
